//
//  SettingVC.swift
//  NewDelivery
//
//  Created by 天下宅 on 2016/11/8.
//  Copyright © 2016年 天下宅. All rights reserved.
//

import UIKit

class SettingVC: BaseVC {

    let tableView = UITableView()
    var tvp:SettingTVPresenter!
    
    var versionLable = UILabel()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.groupTableViewBackground
        
        let nav = WKNavView.creatNavView(WithTitle: "设置", vProtocol: self)
        self.view.addSubview(nav)
//        nav.leftTitle = "返回"
        nav.leftImage = UIImage.init(named: "左箭头")

        self.view.addSubview(tableView)
        tableView.snp.makeConstraints { (make) in
            make.left.right.bottom.equalToSuperview()
            make.top.equalTo(nav.snp.bottom)
        }
        tableView.backgroundColor = UIColor.groupTableViewBackground
        tvp = SettingTVPresenter.init(WithTV: tableView, tvc: self)
        // Do any additional setup after loading the view.
        
        self.view.addSubview(versionLable)
        versionLable.text = "版本号：" + (Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String)
        versionLable.textAlignment = NSTextAlignment.center
        versionLable.snp.makeConstraints { (make) in
            make.left.right.bottom.equalToSuperview()
            make.height.equalTo(40)
        }
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
